package crawler;

import java.util.HashMap;

public class WebList {
	HashMap<String, WebInformation> webList;
	
	public WebList() {
		webList = new HashMap<String, WebInformation>();
	}
	
	public boolean insert(String _url, boolean _external) {
		if (webList.containsKey(_url)) {
			return false;
		} else {
			WebInformation webInformation = new WebInformation(_external);
			webList.put(_url, webInformation);
			return true;
		}
	}
}
